<?php

	function curPageName() {
		 return substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);
	}
	$page = curPageName();
	//Get loggin in user information
	/*CurrentUser is a user object*/
	$currentUser = $_SESSION['USEROBJ'];
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>DHCS</title>
<link rel="stylesheet" type="text/css" href="css/main.css" />
<link rel="stylesheet" type="text/css" href="css/table.css" />
<link rel="stylesheet" type="text/css" href="css/jobconfig.css" />
<link rel="stylesheet" type="text/css" href="css/profile.css" />
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>

</head>
<body>
<div id="banner">
    <div id="logo"></div>
    <div id="userInfo">
    Welcome back <b><?php echo $currentUser->getName();?></b> [ID: <?php echo $currentUser->getId();?>] <a href="logout.php">Logout</a>
    </div>
    <div id="menu">
    <ul>
    	<li><a <?php if($page == "mainDash.php"){echo "class=\"selected\"";}?> href="mainDash.php">Dashboard</a></li>
        <li><a <?php if($page == "statistics.php"){echo "class=\"selected\"";}?> href="statistics.php">Statistics</a></li>
        <li><a <?php if($page == "profile.php"){echo "class=\"selected\"";}?> href="profile.php">My Profile</a></li>        
    </div>
</div>
<div id="smallBar"></div>
<div id="mainContainer">

